Properly escape < and > in the description

Akinori MUSHA 9 years ago
parent
commit
6ac849dbb7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/models/agents/data_output_agent.rb

+ 2 - 2
app/models/agents/data_output_agent.rb

@@ -19,9 +19,9 @@ module Agents
19 19
 
20 20
           * `secrets` - An array of tokens that the requestor must provide for light-weight authentication.
21 21
           * `expected_receive_period_in_days` - How often you expect data to be received by this Agent from other Agents.
22
-          * `template` - A JSON object representing a mapping between item output keys and incoming event values.  Use [Liquid](https://github.com/cantino/huginn/wiki/Formatting-Events-using-Liquid) to format the values.  Values of the `link`, `title`, `description` and `icon` keys will be put into the <channel> section of RSS output.  The `item` key will be repeated for every Event.  The `pubDate` key for each item will have the creation time of the Event unless given.
22
+          * `template` - A JSON object representing a mapping between item output keys and incoming event values.  Use [Liquid](https://github.com/cantino/huginn/wiki/Formatting-Events-using-Liquid) to format the values.  Values of the `link`, `title`, `description` and `icon` keys will be put into the \\<channel\\> section of RSS output.  The `item` key will be repeated for every Event.  The `pubDate` key for each item will have the creation time of the Event unless given.
23 23
           * `events_to_show` - The number of events to output in RSS or JSON. (default: `40`)
24
-          * `ttl` - A value for the <ttl> element in RSS output. (default: `60`)
24
+          * `ttl` - A value for the \\<ttl\\> element in RSS output. (default: `60`)
25 25
 
26 26
         If you'd like to output RSS tags with attributes, such as `enclosure`, use something like the following in your `template`:
27 27